package com.linwen.javase.desgin_pattern.action.vistior;

/**
 * @ClassName ConcreteVisitorA
 * @Description
 * @Author lin
 * @Date 2022/6/30 上午12:49
 * @Version V1.0
 */
//具体访问者A类
class ConcreteVisitorA implements Visitor {
    public void visit(ConcreteElementA element) {
        System.out.println("具体访问者A访问-->" + element.operationA());
    }
    public void visit(ConcreteElementB element) {
        System.out.println("具体访问者A访问-->" + element.operationB());
    }
}
